<?php
namespace iBrand\Component\Recharge;

use Illuminate\Support\ServiceProvider;
use Event;


class RechargeServiceProvider extends ServiceProvider
{

    /**
     * bootstrap, add routes
     */
    public function boot()
    {
        if ($this->app->runningInConsole()) {
            $this->registerMigrations();
        }
        Event::subscribe('iBrand\Component\Recharge\Listeners\RechargeEventListener');
    }

    /**
     * register the service provider
     */
    public function register()
    {
    }

    public function provides()
    {

    }

    /**
     * Register Passport's migration files.
     *
     * @return void
     */
    protected function registerMigrations()
    {

        return $this->loadMigrationsFrom(__DIR__.'/../migrations');

    }
}
